<%@page pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table width='100%' height='31' border='0' cellspacing='0'
		cellpadding='0'>
	<tr>
		<td width='40'
			background='${pageContext.request.contextPath}/common/images/index_26.jpg'>&nbsp;
			
		</td>
		<!--内容区导航开始-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<span class="channel_title">读者信息管理
				<span style="color:#000;"> >> 新增读者身份  >></span> </span></td>
		<!--内容区导航结束-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>&nbsp;
		</td>
		<td width='13' align='right' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<img src="${pageContext.request.contextPath}/common/images/ctitle_bak_right.jpg" height="31" width="10">
		</td>
	</tr>
</table>

<table width='100%' height="325px" border='0' cellspacing='0' cellpadding='0'>
	<tr align="center">
		<td>
			<form name="aform" action="${pageContext.request.contextPath}/sysManage/readerManage/identity.do?method=addidentity" method="post" onsubmit="return (checkidentity());">
				<table>
					<tr>
						<td><span style="fond-size:12px">职称 / 学位：</span></td>
						<td><input type="text" id="type_name" name="type_name"></td>
						<td><div id="musername"></div><td>
						
					</tr>
					<tr>
						<td><span style="fond-size:12px">最大借阅数：</span></td>
						<td><input type="text" id="max_borrow" name="max_borrow"></td>
						<td><div id="mlibcard"></div><td>
					</tr>					
					<tr align="center">
						<td height='31'><input type="submit" value="添加"></td>
					 	<td><input type="reset" value="清空"></td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>
<script type="text/javascript">
	function checkidentity(){
		var type_name = document.getElementById('type_name').value;
		var max_borrow = document.getElementById('max_borrow').value;
		if(type_name==""){
			alert("职位不能为空！");
			return false;
		}
			if(max_borrow==""){
				alert("最大借阅数不能为空！");
					return false;
			}
			if(isNaN(max_borrow)){
				alert("最大借阅数必须为数字！");
				return false;
			}
	}
</script>